package com.example.wanbaqian.base;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

/**
 * Created by Administrator on 2017/5/8 0008.
 * 数据库帮助类
 */

public class BaseSQLiteOpenHelper extends SQLiteOpenHelper {
    public BaseSQLiteOpenHelper(Context context) {
        super(context, "WeiXiaoJie.db", null, 1);
    }

    @Override
    public void onCreate(SQLiteDatabase db) {
        //枚举数据的表
        db.execSQL("create table enum (_id integer primary key autoincrement ,enum_key varchar(20),enum_value varchar(20),enum_type varchar(20))");
    }

    @Override
    public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {

    }
}
